package com.xuecheng.search.api;

import com.xuecheng.commons.model.vo.CoursePubIndexVo;
import com.xuecheng.commons.model.vo.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Sober_wxy
 * @date 2022/7/26 19:36
 */
@FeignClient("xc-search-service")
public interface SearchClient {
        @GetMapping("/course-search/{id}")
        public ResponseResult<CoursePubIndexVo> findById(@PathVariable("id") Long id);
}
